<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<!--{$page_charset}-->" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<!--{if $config.pcico eq ''}--><!--{else}-->
<link rel="shortcut icon" type="image/x-icon" href="../<!--{$config.pcico}-->" />
<!--{/if}-->
<title><!--{$plat_name}--></title>
 <!--{if $version == 'fuxing'}-->
         <link rel="stylesheet" type="text/css" href="xycms/css/fuxing_index.css" />
     <!--{else}-->
        <link rel="stylesheet" type="text/css" href="xycms/css/index.css" />
      <!--{/if}-->

<link rel="stylesheet" type="text/css" href="xycms/css/<!--{$current_style}-->.css" id="styleswitch" />
<script type='text/javascript' src='js/jquery.js'></script>
</head>
<body>
<!-- top -->
<div id="top">
  <div class="top2">
     <a href="../" class="logo" target="_blank">
     <!--{if $version == 'fuxing'}-->
       福星后台
     <!--{else}-->
       祥云平台
      <!--{/if}-->
    </a>
  <div class="right">
    <p>您好！<span class="username"><!--{$uc_adminname}--></span>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="xycms_admin.php?action=changepassword" target="right">修改密码</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="../" target="_blank">网站首页</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="logout.php" target="_top">退出登录</a></p>
  </div>
    <div id="navs">
	<ul>
	  <li class="current"><a href="" rel="index">首页</a></li>
      <li><a href="" rel="content">内容中心</a></li>
	  <li><a href="" rel="product">产品管理</a></li>
	  <li><a href="" rel="info">新闻管理</a></li>
	  <li><a href="" rel="other">营销中心</a></li>
      <li><a href="" rel="system">系统设置</a></li>
      <!--{if $uc_adminname == 'master'}-->
     	 <li><a href="" rel="super">高级设置</a></li>
      <!--{/if}-->
	</ul>  
  </div>
  </div>
</div>
<!-- end -->
<div id="content">
<!-- left -->
	<div class="left_menu"></div>
<!-- end -->
<!-- sidebar -->
	<a id="sidebar" class="open" title="展开与关闭"></a>
<!-- end -->
<!-- main -->
	<div class="right_frame">
		<div class="content" style="position:relative;overflow:hidden;zoom:1;">
			<iframe id="main_frame" name="right" src="admincp.php?mod=main" frameborder="false" scrolling="auto" style="border: none;" height="auto" width="100%" allowtransparency="true"></iframe>
		</div>
	</div>
<!-- end -->
</div>
<!-- script -->
<script>
window.onload = function (){
	wsize();
	$('.left_menu').load('frm_left.php', {'mod':'index'});
};

$(window).resize(function() {
	wsize();
});

//展开和关闭左侧导航
$('#sidebar').on('click',function(){
	if($(this).data('clicknum') == 1) {
		$('.left_menu').css('width',$(this).data('main_width'));
		$(this).data('clicknum', 0);
	}else{
		$(this).data('main_width', $('.left_menu').css('width'));
		$('.left_menu').css('width',0);
		$(this).data('clicknum', 1);	
	}
});


//一级导航点击
$('#navs').on('click', 'a', function(e){
	e.preventDefault();
	e.stopPropagation();
	$(this).parent().addClass('current').siblings().removeClass('current');
	var mod = $(this).attr('rel');
	$('.left_menu').load('frm_left.php', {'mod':mod}, function(){
		$(".left_menu").find("a").first().click();
	});
});


//左侧导航点击
$('.left_menu').on('click', 'a', function(e){
	e.preventDefault();
	e.stopPropagation();
	var target = $(this).attr('rel');
	$('.menu dd').removeClass('current');
	$(this).parent().addClass('current');
	$('#main_frame').attr('src', target);
});
	
function wsize(){
	var height = $(window).height() - 98;
	$('#sidebar').height(height);
	$('.left_menu').height(height);
	$('#main_frame').height(height);	
}
	
	
</script>
</body>
</html>